home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14849 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: nimr.mrc.ac.uk!m-bradbu
  2. From: m-bradbu@nimr.mrc.ac.uk (Mark Bradburn)
  3. Newsgroups: comp.lang.c++
  4. Subject: HELP PLEASE!!
  5. Date: 2 Apr 1996 10:08:37 GMT
  6. Organization: National Institute for Medical Research, London
  7. Message-ID: <4jqub5$o0b@mercury.hgmp.mrc.ac.uk>
  8. NNTP-Posting-Host: iris4.nimr.mrc.ac.uk
  9.  
  10.     Hi all,
  11.  
  12.     I am new to all this programming lark and cant work out how to the following.
  13. I have a file called 'answer**' and want to extract numbers from the file and
  14. calculate the mean and standard deviation.The file looks soemthing like...
  15.  
  16. SEQ = A1    STR = A2    SCORE = 100.00
  17. SEQ = A2    STR = B1  SCORE = 55.45
  18. SEQ = B1    STR = B2  SCORE = 66.76
  19.  
  20.     What i want the thing to do is open the file,extract the different combinations
  21. and writer the mean and S.D for the pairings A/A, B/A+A/B and B/B back to the
  22. 'answer***' file or to a new one.
  23.  
  24.     Anyone give me a masive hint on how to do this.
  25.  
  26.     -Mark
  27. -- 
  28. Mark Bradburn, Mathematical Biology, N.I.M.R ,LONDON, UK   NW7 1AA
  29. http://www.nimr.mrc.ac.uk/  | talk m-bradbu@iris4.nimr.mrc.ac.uk
  30. E-mail: m-bradbu@nimr.mrc.ac.uk | Phone: 0181 9593666 ext.2396
  31. FAQ : (UK) (0181) 9138545
  32.  
  33.  
  34.  
  35.